package cn.com.twoke.app.pin_dou_dou.color;

import java.awt.*;

public interface ColorDifferenceCalculator {

    /**
     * 计算两个颜色的色差值
     * @param color1 颜色1
     * @param color2 颜色2
     * @return 返回色差值
     */
    double deltaE(Color color1, Color color2);


    static ColorDifferenceCalculator CIE76() {
        return new CIE_76();
    }

    static ColorDifferenceCalculator CIE94() {
        return new CIE_94();
    }

    static ColorDifferenceCalculator CIE2000() {
        return new CIE_2000();
    }

    static ColorDifferenceCalculator CIE_CMC(){
        return new CIE_CMC();
    }

}
